package com.ruoyi.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.WebIndustryDataMapper;
import com.ruoyi.web.domain.WebIndustryData;
import com.ruoyi.web.service.IWebIndustryDataService;

/**
 * 行业资讯模块Service业务层处理
 * 
 * @author li
 * @date 2025-08-01
 */
@Service
public class WebIndustryDataServiceImpl implements IWebIndustryDataService 
{
    @Autowired
    private WebIndustryDataMapper webIndustryDataMapper;

    /**
     * 查询行业资讯模块
     * 
     * @param id 行业资讯模块主键
     * @return 行业资讯模块
     */
    @Override
    public WebIndustryData selectWebIndustryDataById(Long id)
    {
        return webIndustryDataMapper.selectWebIndustryDataById(id);
    }

    /**
     * 查询行业资讯模块列表
     * 
     * @param webIndustryData 行业资讯模块
     * @return 行业资讯模块
     */
    @Override
    public List<WebIndustryData> selectWebIndustryDataList(WebIndustryData webIndustryData)
    {
        return webIndustryDataMapper.selectWebIndustryDataList(webIndustryData);
    }

    /**
     * 新增行业资讯模块
     * 
     * @param webIndustryData 行业资讯模块
     * @return 结果
     */
    @Override
    public int insertWebIndustryData(WebIndustryData webIndustryData)
    {
        return webIndustryDataMapper.insertWebIndustryData(webIndustryData);
    }

    /**
     * 修改行业资讯模块
     * 
     * @param webIndustryData 行业资讯模块
     * @return 结果
     */
    @Override
    public int updateWebIndustryData(WebIndustryData webIndustryData)
    {
        return webIndustryDataMapper.updateWebIndustryData(webIndustryData);
    }

    /**
     * 批量删除行业资讯模块
     * 
     * @param ids 需要删除的行业资讯模块主键
     * @return 结果
     */
    @Override
    public int deleteWebIndustryDataByIds(Long[] ids)
    {
        return webIndustryDataMapper.deleteWebIndustryDataByIds(ids);
    }

    /**
     * 删除行业资讯模块信息
     * 
     * @param id 行业资讯模块主键
     * @return 结果
     */
    @Override
    public int deleteWebIndustryDataById(Long id)
    {
        return webIndustryDataMapper.deleteWebIndustryDataById(id);
    }
}
